﻿using System;
using System.Collections.Generic;
using HtScrum.Service.Model;
namespace HtScrum.Service.Repository
{
    public class CustomerRepositoryFake : IRepository<CustomerModel>
    {
        public void Commit(Action<bool> callback)
        {
            throw new NotImplementedException();
        }

        public void Load(Action<Data.EntityContractCollection<CustomerModel>> callback)
        {
            Data.EntityContractCollection<CustomerModel> list = new Data.EntityContractCollection<CustomerModel>();

            list.Add(new Data.EntityContract<CustomerModel>(new CustomerModel() { Name = "Diuno", Id = 514 }));
            list.Add(new Data.EntityContract<CustomerModel>(new CustomerModel() { Name = "Fras-le", Id = 500 }));
            list.Add(new Data.EntityContract<CustomerModel>(new CustomerModel() { Name = "Marcopolo", Id = 587 }));
            list.Add(new Data.EntityContract<CustomerModel>(new CustomerModel() { Name = "Gerdau", Id = 874 }));

            callback(list);
        }
    }
}
